updating oE split_path

split_path

include filesys.e 
namespace filesys 
public function split_path(sequence fname) 

split a filename into path segments.

Parameters:
  • fname -- Filename to split
Returns:

A sequence of strings representing each path element found in fname.

Example 1:
sequence path_elements = split_path("/usr/home/john/hello.txt") 
-- path_elements would be { "usr", "home", "john", "hello.txt" } 
Versioning:
  • Added in 4.0.1
See Also:

join_path

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu